package com.kamistoat.meimeichatserveraggrement.protocol.p2p;clientP2PChannel

import com.kamistoat.meimeichatserveraggrement.protocol.Command;
import com.kamistoat.meimeichatserveraggrement.protocol.Packet;

/**
 * 当P2P连接的一端就绪时通知服务器
 */
public class UDP_AnswerP2PClient2Server extends Packet {
    /**
     * ClientB的userId
     */
    private String selfClientUserId;
    /**
     * ClientA的userId
     */
    private String targetClientUserId;

    public UDP_AnswerP2PClient2Server() {
    }

    public UDP_AnswerP2PClient2Server(String selfClientUserId, String targetClientUserId) {
        this.selfClientUserId = selfClientUserId;
        this.targetClientUserId = targetClientUserId;
    }

    public String getSelfClientUserId() {
        return selfClientUserId;
    }

    public void setSelfClientUserId(String selfClientUserId) {
        this.selfClientUserId = selfClientUserId;
    }

    public String getTargetClientUserId() {
        return targetClientUserId;
    }

    public void setTargetClientUserId(String targetClientUserId) {
        this.targetClientUserId = targetClientUserId;
    }

    /**
     * 获取协议指令
     *
     * @return 返回指令值
     */
    @Override
    public Byte getCommand() {
        return Command.UDP_AnswerP2PClient2Server;
    }
}
